package com.leyou.item.service;

import com.leyou.common.vo.PageResult;
import com.leyou.item.dto.BrandDTO;
import org.springframework.http.ResponseEntity;

import java.util.List;

public interface BrandService {
    PageResult<BrandDTO> queryForPage(Integer page, Integer rows, String search, String sortBy, Boolean desc);

    void saveBrand(BrandDTO brandDTO, List<Long> cids);

    void updateBrand(BrandDTO brandDTO, List<Long> cids);

    void deleteById(Long id);
    BrandDTO queryById(Long id);

    List<BrandDTO> queryByCategoryId(Long cid);

    List<BrandDTO> queryByBrandIds(List<Long> ids);
}
